package model;

import model.Actions.Action;

public class Macaco {

    private String nome;
    private double dirX, dirY;
    private double x, y;

    private Action currentAction;

    public Macaco(double x, double y) {
	this.nome = "Macaco";
	this.x = 0;
	this.y = 0;
	this.dirX = 1;
	this.dirY = 0;
	this.currentAction = null;
    }

    public String getNome() {
	return nome;
    }

    public void setNome(String nome) {
	this.nome = nome;
    }

    public double getDirX() {
	return dirX;
    }

    public void setDirX(double dirX) {
	this.dirX = dirX;
    }

    public double getDirY() {
	return dirY;
    }

    public void setDirY(double dirY) {
	this.dirY = dirY;
    }

    public double getX() {
	return x;
    }

    public void setX(double x) {
	this.x = x;
    }

    public double getY() {
	return y;
    }

    public void setY(double y) {
	this.y = y;
    }

    public String getCurrentAction() {
	if (this.currentAction == null) {
	    return "DoNothing";
	}
	return this.currentAction.getName();
    }

    public void setCurrentAction(Action currentAction) {
	this.currentAction = currentAction;
    }

    /**
     * M�todo que verifica qual o passo de anima��o da a��o.
     * 
     * @return Um inteiro representando o passo da a��o corrente.
     */
    public int getStep() {
	if (this.currentAction == null) {
	    return 0;
	}
	return this.currentAction.getStep();
    }

}
